<?php
class Coordenadas extends AppModel {

	var $name = 'Coordenadas';
	var $primaryKey = 'id_cidade';
	var $validate = array(
		'latitude' => array('notempty'),
		'longitude' => array('notempty'),
		'norte' => array('notempty'),
		'sul' => array('notempty'),
		'leste' => array('notempty'),
		'oeste' => array('notempty'),
		'noroeste' => array('notempty'),
		'nordeste' => array('notempty'),
		'sudeste' => array('notempty'),
		'sudoeste' => array('notempty')
	);

	//The Associations below have been created with all possible keys, those that are not needed can be removed
	var $belongsTo = array(
		'FKIndexCoordenadasInfoCidadeId' => array(
			'className' => 'Informacaocidade',
			'foreignKey' => 'id_cidade',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		)
	);

}
?>